import request from '@/utils/request'

export function getBroilerList(query) {
  return request({
    url: '/foundation/broiler/getList',
    method: 'post',
    data: query
  })
}
export function getBroilerUsableList(data) {
  return request({
    url: '/foundation/broiler/getUsableList',
    method: 'post',
    data: data
  })
}


export function getBroilerDetail(id) {
  return request({
    url: '/foundation/broiler/getDetail',
    method: 'post',
    data: id
  })
}

export function saveBroiler(id) {
  return request({
    url: '/foundation/broiler/save',
    method: 'post',
    data: id
  })
}

export function removeBroilerByID(id) {
  return request({
    url: '/foundation/broiler/remove',
    method: 'post',
    data: id
  })
}

export function changeBroilerStatusByID(formdata) {
  return request({
    url: '/foundation/broiler/change-status',
    method: 'post',
    data: formdata
  })
}

export function getBroilerAvabile(query) {
  return request({
    url: '/foundation/broiler/getAvailable',
    method: 'post',
    data: query
  })
}

